<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		
		<title>vw和vh</title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.bigbox{
				width: 500px;
				height: 100px;
				background: #008B8B;
			}
			.box{
				width: 100vw;
				height: 46vw;
				background: skyblue;
			}
		</style>
	</head>
	<body>
		<div class="bigbox">
		<div class="box"></div>
		</div>
		
	</body>
</html>

